﻿(function () {
    //Section 1 : 按下自定义按钮时执行的代码
    var a = {
        exec: function (editor) {
        	//文件上传
    		layer.open({
				title: '请选择上传文件',
				content: '<label for="ckeditorImg" class="ckeditorImg">上传图片</label><input type="file" onChange="ckeditorImgChange(\''+editor.name+'\', this)" id="ckeditorImg"/>'
			});
        }
    };
    b = 'Customupload';
    CKEDITOR.plugins.add(b, {
        init: function (editor) {
            editor.addCommand(b, a);
            editor.ui.addButton('Customupload', {
                label: '添加图片',
                icon: this.path + 'addpic.png',
                command: b
            });
        }
    });
})();